#include <stdio.h>

int main(){
    double balance[5]={1000.0,2.0,3.4,17.0,50.0};
    double *p;
    int i;

    p=balance;
    printf("Take the value by pointer\n");
    for(i=0;i<5;i++)
        printf("*(p+%d): %lf\n",i,*(p+i));
    printf("Take the value by array_name\n");
    for(i=0;i<5;i++)
        printf("*(balance+%d): %lf\n",i,*(balance+i));
    return 0;
}

